Let routes honor selected character set in Garmins.
authorrobertl <robertl>
Tue, 16 Sep 2008 03:59:02 +0000 (03:59 +0000)
committerrobertl <robertl>
Tue, 16 Sep 2008 03:59:02 +0000 (03:59 +0000)
garmin.c

index b387790a87e2d5068108ff38f83ef349dc113e99..98269fd7f8c2d421ba9795e4246eb68d81cb166c 100644 (file)
--- a/garmin.c
+++ b/garmin.c
@@ -970,8 +970,8 @@ route_waypt_pr(const waypoint *wpt)
        d = rte->ident;
        for (s = wpt->shortname; *s; s++) {
                int c = *s;
-               if (isalpha(c)) c = toupper(c);
-               if (strchr(MILITANT_VALID_WAYPT_CHARS, c)) {
+               if (receiver_must_upper && isalpha(c)) c = toupper(c);
+               if (strchr(valid_waypt_char, c)) {
                        *d++ = c;
                }
        }